<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: get_states.php 135 2013-09-22 07:30:55Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 135 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:30:55 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

chdir('../../../');
include('includes/application_top_export.php');

$zones = $db->db_query("SELECT zone_id, zone_name FROM ".DB_PREFIX."zones WHERE zone_country_id = '" . (int)$_GET['land'] . "' ORDER BY zone_name");
if($zones->_numOfRows > 0) {
	$zones_array = array();
	$select = '<select class="create_account_state" name="state">';
	while (!$zones->EOF) {
		$select .= '<option value="'.$zones->fields['zone_id'].'">'.$zones->fields['zone_name'].'</option>';
		$zones->MoveNext();
	}
	$select .= '</select> <span class="inputRequirement">*</span>';

} else
	$select = 'dieses Land hat keine Bundesl&auml;nder/Bundesstaaten';

echo $select;
?>